package org.qiyu.live.web.starter.error;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-10-22
 * Time: 19:04
 */
public enum QiYuBaseErrorEnum implements QiYuBaseError {
    PARAM_ERROR(1, "参数异常"),
    TOKEN_ERROR(2, "token异常"),
    REQUEST_LIMIT_ERROR(3, "请求过于频繁"),
    SEND_GIT_ERROR(4, "发送礼物异常"),
    BANK_PRODUCTS_ERROR(5, "展示列表异常"),
    LIVING_PK_BUSY(6, "目前有人在连线,请稍后在试");

    private int errorCode;
    private String errorMsg;

    QiYuBaseErrorEnum(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    @Override
    public int getErrorCode() {
        return 0;
    }

    @Override
    public String getErrorMsg() {
        return null;
    }
}